<?php
class PageEditAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'admin';
	}

	public function execute()
	{
		$id				= $this->context->get('id');
		if(is_numeric($id) && $id)
		{
			$pageService		= new PageService();
			$this->data['info']	= $pageService->get($id);
		}
		$this->data['id']		= $id;
		
		$this->data['menu']		= 'channel';
		$this->data['submenu']	= 'channel_page';
	}
}
